package com.semanticweb.webapp.model.ontology;

import org.apache.lucene.document.Document;

import com.semanticweb.webapp.ontology.CType;
import com.semanticweb.webapp.ontology.OntHelper;
import com.semanticweb.webapp.search.IDocument;

/**
 * Class which represents 'Oznaka i broj negativa' from the chart.
 * 
 * @author Lab
 * 
 */
public class NegativeLabelAndNumber extends DefaultAbstractEntity<String> implements IDocument {

    public static final String ONT_IDENTIFIER = "nlan";

    public NegativeLabelAndNumber(final String id) {
        super(id);
    }

    @Override
    public void toRDF() {
        OntHelper.toRDFNote(this.id, this.value, ONT_IDENTIFIER, CType.NEGATIVE_LABEL_AND_NUMBER);
    }

    public void fromRDF() {
        this.value = OntHelper.fromRDFNote(this.id, CType.NEGATIVE_LABEL_AND_NUMBER);
    }

    @Override
    public void toIndexDocument(final Document doc) {
        // Nothing to index
    }

}
